/* eslint-disable no-param-reassign */
const initData = {
  name: '',
  packageName: ''
}
const newModel = {
  state: {
    newSotaData: { ...initData },
    verisionList: []
  },
  mutations: {
    RESET_NEWSOTA_DATA (state) {
      state.newSotaData = { ...initData }
    },
    SET_NEWSOTA_DATA (state, val) {
      state.newSotaData = Object.assign({ ...initData }, val)
    },
    SET_SOTAVERISION_LIST (state, val) {
      state.verisionList = val
    }
  },
  actions: {

  }
}

export default newModel
